ImagXpress 13 for .NET - User Guide > How To > Load an Image > Load Image from File |
Prior to loading an image, set the LoadOptions to provide specific instructions for loading the image. If no load options are specified, ImagXpress uses default values when loading the image.
To load an image from a file, use the ImageX.FromFile methods. When called, the FromFile methods store a copy of the original image in the ImageX object. ImagXpress® looks at the file extension of the specified filename parameter to recognize the filetype.
The ImageStatusEvent and ProgressEvent events are raised to provide feedback on the status of the loading process. Once loading is complete, the image is available in the ImageX object.
ImagXpress supports loading of image files from FTP, HTTP, and HTTP/S locations, as follows:
1. To specify passwords or proxy settings, set the Internet property within LoadOptions.
2. Call one of the following:
Make sure that the String parameter specifies the full Internet path and file name |
3. A copy of the original image is stored in the ImageX object.
ImagXpress® supports the following multi-page image formats: PDF, TIFF, ICO, and DCX. The NumPages method provides the number of pages in the file.
To load the entire multi-page file into one ImageX object, call either of the following:
FromFile(ImagXpress,String)
To load only one specified page of a multi-page file into the ImageX object, call one of the following:
FromFile(ImagXpress,String,Int32) FromFile(ImagXpress,String,Int32,LoadOptions)